import os
import pytest

from basic.multidevice import MultiDevice
from const import CASE_DTR, DATA_DIR, HTML_DIR

if __name__ == '__main__':
    MultiDevice().start_appium()
    pytest.main(['-sv', str(CASE_DTR), '--alluredir', str(DATA_DIR)])
    os.system(f'allure generate {DATA_DIR} -o {HTML_DIR} --single-file')